package com.bush.mall.coupon.service;

import com.baomidou.mybatisplus.extension.service.IService;

import com.bush.mall.common.entity.Result;;
import com.bush.mall.coupon.entity.SeckillPromotionEntity;

/**
 * 秒杀活动
 * @author RUN
 * @date 2022-11-29
 */
public interface SeckillPromotionService extends IService<SeckillPromotionEntity> {

    public static final String BEAN_ID = "mall.seckillPromotionService";

    /**
     * 分页查询秒杀活动列表
     * @author RUN
     * @date 2022-11-29
     */
     Result queryForPage(Integer current,Integer size);


    /**
     * 创建秒杀活动表单对象
     * @author RUN
     * @date 2022-11-29
     */
     Result saveSeckillPromotion(SeckillPromotionEntity seckillPromotion);


    /**
     * 修改秒杀活动表单对象
     * @author RUN
     * @date 2022-11-29
     */
     Result updateSeckillPromotion(SeckillPromotionEntity seckillPromotion);

    /**
     * 删除指定ID的秒杀活动
     * @author RUN
     * @date 2022-11-29
     */
     Result deleteSeckillPromotion(Long id);

}

